package com.sen.common.widget.media;

import com.sen.common.widget.Attributes;
import com.sen.common.widget.Component;

/**
 * @author sen
 */
public class Img extends Component {

	private String src;

	public Img() {
		super("img");
	}

	public Img src(String src) {
		this.src = src;
		return this;
	}
	
	@Override
	protected String specialAttributes() {
		return super.specialAttributes()
				+ Attributes.attrIfNonblank("src", src);
	}
}
